
from rich.console import Console
from rich.table import Table

console = Console()
table = Table(title="示例表格")
table.add_column("序号", justify="center", style="cyan")
table.add_column("名称", style="magenta")
table.add_column("描述", justify="right", style="green")

table.add_row("1", "苹果", "一种常见水果")
table.add_row("2", "香蕉", "热带水果")
console.print(table)
